<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>#MaxHotkeysPerInterval</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link href="../static/theme.css" rel="stylesheet" type="text/css" />
<script src="../static/content.js" type="text/javascript"></script>
</head>
<body>

<h1>#MaxHotkeysPerInterval</h1>

<p>Along with <a href="_HotkeyInterval.htm">#HotkeyInterval</a>, specifies the rate of <a href="../Hotkeys.htm">hotkey</a> activations beyond which a warning dialog will be displayed.</p>

<pre class="Syntax">#MaxHotkeysPerInterval Value</pre>
<h3>Parameters</h3>
<dl>

  <dt>Value</dt>
  <dd><p>The maximum number of hotkeys that can be pressed in the interval specified by <a href="_HotkeyInterval.htm">#HotkeyInterval</a> without triggering a warning dialog.</p></dd>

</dl>
<h3>Remarks</h3>
<p>Care should be taken not to make the above too lenient because if you ever inadvertently introduce an infinite loop of keystrokes (via a <a href="Send.htm">Send</a> command that accidentally triggers other hotkeys), your computer could become unresponsive due to the rapid flood of keyboard events.</p>
<p>As an oversimplified example, the hotkey <code>^c::Send ^c</code> would produce an infinite loop of keystrokes. To avoid this, add the <a href="../Hotkeys.htm#prefixdollar">$ prefix</a> to the hotkey definition (e.g. <code>$^c::</code>) so that the hotkey cannot be triggered by the Send command.</p>
<p>If this directive is unspecified in the script, it will behave as though set to 70.</p>
<h3>Related</h3>
<p><a href="_HotkeyInterval.htm">#HotkeyInterval</a></p>
<h3>Example</h3>
<pre class="NoIndent">#MaxHotkeysPerInterval 200</pre>

</body>
</html>
